<div ng-controller="userMechanismlController">

<!-- contain BEGIN -->
    <div class="right-product right-full animate-time" ng-class="{ true: 'right-full', false: 'right-off' }[isActive]">
        <div class="center-back right-back">
            <div class="container-fluid">
                <div class="info-center">
                    <div class="page-header">
                        <div class="pull-left">
                            <h4>机构列表</h4>
                        </div>
                    </div>

                    <div class="search-box row">
                        <div class="col-md-1">
                            <button type="button" class="btn btn-default" id="newly-added-btn" data-toggle="modal" data-target="#user-mechanism-model" ng-click="newlyAdded()">
                                <span class="glyphicon glyphicon-plus"></span> 新增
                            </button>
                        </div>
                    </div>

                    <div class="search-box row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <span class="pull-left form-span">机构名称</span>
                                <input type="text" 
                                       name="institutionName" 
                                       class="form-control"
                                       ng-model="retrieval_institutionName"
                                       >
                            </div>
                            <div class="form-group">
                                <span class="pull-left form-span">邮箱</span>
                                <input type="email" 
                                       name="email" 
                                       class="form-control"
                                       ng-model="retrieval_email"
                                       >
                            </div>
                            <div class="form-group btn-search">
                                <button class="btn btn-default" ng-click="retrieval()">
                                    <span class="glyphicon glyphicon-search"></span>检索
                                </button>
                            </div>
                            <div class="form-group dropdown more-retrieval-dropdown">
                                <button type="button" class="btn btn-default" id="more-retrieval"  data-toggle="dropdown" ng-click="caret()">
                                    更多检索&nbsp;&nbsp;<span class="caret"></span>
                                </button>
                             
                            </div>
                        </div>

                        <div class="col-md-12">
                              <!-- 更多检索 下拉框 BEGIN -->                                                                                         
                                    <ul class="dropdown-menu dropdown-menu-right more-retrieval" role="menu" aria-labelledby="more-retrieval" ng-class="{open:userCaret == true}">
                                        <li role="presentation" class="form-group col-md-3">
                                            <span class="pull-left text-right">省份</span>
                                            <input type="text" 
                                                   name="province" 
                                                   class="form-control"
                                                   ng-model="retrieval_province"
                                                   >
                                        </li>

                                        <li role="presentation" class="form-group col-md-3">
                                            <span class="pull-left  text-right">城市</span>
                                            <input type="text" 
                                                   name="city" 
                                                   class="form-control"
                                                   ng-model="retrieval_city"
                                                   >
                                        </li>

                                        <li role="presentation" class="form-group col-md-3">
                                            <span class="pull-left text-right">注册时间</span>
                                            <input type="text" 
                                                   name="startCreateTime" 
                                                   class="form-control half pull-left"
                                                   ng-model="retrieval_startCreateTime"
                                                   >
                                            <span class="pull-left gap">到</span>
                                            <input type="text" 
                                                   name="endCreateTime" 
                                                   class="form-control half"
                                                   ng-model="retrieval_endCreateTime"
                                                   >
                                        </li>

                                        <li role="presentation" class="form-group col-md-3">
                                            <span class="pull-left text-right">最后登录时间</span>
                                            <input type="text" 
                                                   name="startLoginTime" 
                                                   class="form-control half pull-left"
                                                   ng-model="retrieval_startLoginTime"
                                                   >
                                            <span class="pull-left gap">到</span>
                                            <input type="text" 
                                                   name="endLoginTime" 
                                                   class="form-control half"
                                                   ng-model="retrieval_endLoginTime"
                                                   >
                                        </li>
                                    </ul>                                            
                                <!-- 更多检索 下拉框 END -->
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="table-margin">
                        <table class="table table-bordered table-header">
                            <thead>
                                <tr>
                                    <td class="w10 text-center">公司名称</td>
                                    <td class="w10 text-center">上级机构信息</td>
                                    <td class="w10 text-center">机构类型</td>
                                    <td class="w10 text-center">性质</td>
                                    <td class="w10 text-center">行业</td>
                                    <td class="w10 text-center">省份</td>
                                    <td class="w10 text-center">城市</td>
                                    <td class="w5 text-center">状态</td>
                                    <td class="w10 text-center">所辖用户</td>
                                    <td class="w15 text-center">操作</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr  ng-repeat="val in tabVal">
                                    <td class="text-center">{{ val.institutionName }}</td>
                                    <td class="text-center">最上级</td>
                                    <td class="text-center">{{ val.institutionType }}</td>
                                    <td class="text-center">{{ val.nature }}</td>
                                    <td class="text-center">{{ val.industry }}</td>
                                    <td class="text-center">{{ val.province }}</td>
                                    <td class="text-center">{{ val.city }}</td>
                                    <td class="text-center">{{ val.enabled }}</td>
                                    <td class="text-center icon-td">
                                        <i class="icon-US"  title="机构用户管理"></i>
                                        <i class="icon-SRS" title="审核申请用户"></i>
                                    </td>
                                    <td class="text-center icon-td">
                                        <i class="icon-details" 
                                           title="详细信息"     
                                           data-toggle="modal" 
                                           data-target="#details" 
                                           ng-click="details($event, $index)"
                                           >
                                        </i>
                                        <i class="icon-edit"    
                                           title="编辑"     
                                           data-toggle="modal" 
                                           data-target="#edit"    
                                           ng-click="edit($event, $index)"
                                           >
                                        </i>
                                        <i class="icon-packing" 
                                           title="下级机构" 
                                           data-toggle="modal" 
                                           data-target="#packing"
                                           ng-click="packing($event, $index)"
                                           >
                                        </i>
                                    </td>
                                </tr>
                                 <tr>
                                    <td colspan="12" class="text-center" ng-hide="isNoData">暂无数据</td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="12" ng-show="isNoData">
                                        <div class="pull-right">
                                            <nav>
                                                <tm-pagination conf="paginationConf"></tm-pagination>
                                            </nav>
                                        </div>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
<!-- contain END -->
 
<!-- 新增 BEGIN -->
    <div class="modal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="user-mechanism-model">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">新增机构列表</h4>
                </div>
                <div class="modal-body">
                    <form name="userMechanismForm" novalidate>
                    <!-- 机构信息 BEGIN -->
                        <div class="institutional-info" ng-show="currPage">
                            <div class="panel-heading">
                                <h3 class="panel-title">机构信息</h3>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">公司名称：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="institutionName" 
                                           class="form-control"
                                           autocomplete="off"
                                           required
                                           ng-model="newlyAddedInstitutionName"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">显示名称：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="institutionDisplayName" 
                                           class="form-control"
                                           autocomplete="off"
                                           required
                                           ng-model="newlyAddedInstitutionDisplayName"
                                           />
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构类型：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <select name="institutionType" ng-model="newlyAddedInstitutionType">
                                        <option value="">请选择</option>
                                        <option value="0">客户机构</option>
                                        <option value="1">代理商</option>
                                        <option value="2">应用提供商</option>
                                        <option value="3">供应商</option>
                                    <select>
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">上级机构：</label>
                                <div class="col-xs-12 col-sm-9 tree">
                                    
                                    <!-- 树状图 BEGIN -->
                                    
                                    <!-- 树状图 END -->

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">性质：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="nature" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedNature"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">行业：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="industry" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedIndustry"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">省份：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="province" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedProvince"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">城市：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="city" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedCity"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">地址：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="address" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedAddress"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">联系电话：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="phone" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedPhone"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">联系人：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="contactName" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedContactName"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">邮编：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="postcode" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedPostcode"
                                           />
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">描述：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <textarea rows="5" 
                                              type="text" 
                                              name="description"   
                                              class="form-control" 
                                              ng-model="newlyAddedDescription"
                                              />
                                    </textarea>
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构状态：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <select name="enabled" ng-model="newlyAddedEnabled">
                                        <option value="">请选择</option>
                                        <option value="1">启用</option>
                                        <option value="0">不启用</option>
                                    <select>
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <button class="btn btn-default pull-right" ng-click="next()">下一页</button>
                            </div>
                        </div>
                    <!-- 机构信息 END -->
                    <!-- 机构管理员信息 BEGIN -->
                        <div class="admin-info" ng-hide="currPage">
                            <div class="panel-heading">
                                <h3 class="panel-title">机构管理员信息</h3>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">用户名：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="userName" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedUserName"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">昵称：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="displayName" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedDisplayName"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">密码：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="password" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedPassword"
                                           />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-xs-12 col-sm-3 control-label text-right">邮箱：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <input type="text" 
                                           name="email" 
                                           class="form-control"
                                           autocomplete="off" 
                                           ng-model="newlyAddedEmail"
                                           />
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right"  >用户状态：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <select name="status" ng-model="newlyAddedStatus">
                                        <option value="">请选择</option>
                                        <option value="1">启用</option>
                                        <option value="0">未启用</option>
                                    <select>
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right"  >邮箱激活状态：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <select name="isActivate" ng-model="newlyAddedIsActivate">
                                        <option value="">请选择</option>
                                        <option value="1">激活</option>
                                        <option value="0">未激活</option>
                                    <select>
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right"  >实名认证状态：</label>
                                <div class="col-xs-12 col-sm-9">
                                    <select name="isAutonym" ng-model="newlyAddedIsAutonym">
                                        <option value="">请选择</option>
                                        <option value="1">认证</option>
                                        <option value="0">未认证</option>
                                    <select>
                                </div>
                            </div>
                            <div class="form-group height-auto">
                                <button class="btn btn-default pull-right" ng-click="prev()">上一页</button>
                            </div>
                        </div>
                    <!-- 机构管理员信息 END -->
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="confirmNewlyAdded()">确定</button>
                </div>
            </div>
        </div>
    </div>
<!-- 新增 END -->

<!-- 详细信息 BEGIN -->
    <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="details">
        <div class="modal-dialog " role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">机构列表详细信息</h4>
                </div>
                <div class="modal-body">
                     <div class="form-group">
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构ID：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="institutionId" class="form-control" ng-model="details_institutionId" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">上级机构ID：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="parentId" class="form-control" ng-model="details_parentId" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">排序：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="institutionOrder" class="form-control" ng-model="details_institutionOrder" disabled />  
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">公司名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="institutionName" class="form-control" ng-model="details_institutionName" disabled />    
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">显示名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="institutionDisplayName" class="form-control" ng-model="details_institutionDisplayName" disabled />    
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构类型：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="institutionType" class="form-control" ng-model="details_institutionType" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">性质：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="nature" class="form-control" ng-model="details_nature" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">行业：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="industry" class="form-control" ng-model="details_industry" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">省份：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="province" class="form-control" ng-model="details_province" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">城市：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="city" class="form-control" ng-model="details_city" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">地址：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="address" class="form-control" ng-model="details_address" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">联系电话：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="phone" class="form-control" ng-model="details_phone" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">联系人：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="contactName" class="form-control" ng-model="details_contactName" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">邮编：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="postcode" class="form-control" ng-model="details_postcode" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">描述：</label>
                        <div class="col-xs-12 col-sm-9">
                            <textarea rows="5" type="text" name="description"   class="form-control" ng-model="details_description" disabled></textarea>
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构状态：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="enabled" class="form-control" ng-model="details_enabled" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">创建时间：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="createDate" class="form-control" ng-model="details_createDate" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">创建人：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="createUserId" class="form-control" ng-model="details_createUserId" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">最后修改时间：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="lastUpdatedDate" class="form-control" ng-model="details_lastUpdatedDate" disabled />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">最后修改人：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="lastUpdatedUserId" class="form-control" ng-model="details_lastUpdatedUserId" disabled />    
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">返回列表</button>
                </div>
            </div>
        </div>
    </div>
<!-- 详细信息 END -->

<!-- 修改 BEGIN -->
    <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="edit">
        <div class="modal-dialog " role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">修改机构列表</h4>
                </div>
                <div class="modal-body">
                     <div class="form-group">
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构ID：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="institutionId" 
                                   class="form-control" 
                                   ng-model="edit_institutionId"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">上级机构ID：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="parentId" 
                                   class="form-control" 
                                   ng-model="edit_parentId"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">排序：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text"
                                   name="institutionOrder"   
                                   class="form-control" 
                                   ng-model="edit_institutionOrder"
                            />
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">公司名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="institutionName" 
                                   class="form-control" 
                                   ng-model="edit_institutionName"
                                   />    
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">显示名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="institutionDisplayName" 
                                   class="form-control" 
                                   ng-model="edit_institutionDisplayName"
                                   />    
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构类型：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                            name="institutionType" 
                            class="form-control" 
                            ng-model="edit_institutionType"
                            />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">性质：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="nature" 
                                   class="form-control" 
                                   ng-model="edit_nature"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">行业：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="industry" 
                                   class="form-control" 
                                   ng-model="edit_industry"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">省份：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="province" 
                                   class="form-control" 
                                   ng-model="edit_province"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">城市：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="city" 
                                   class="form-control" 
                                   ng-model="edit_city"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">地址：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="address" 
                                   class="form-control" 
                                   ng-model="edit_address"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">联系电话：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="phone" 
                                   class="form-control" 
                                   ng-model="edit_phone"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">联系人：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="contactName" 
                                   class="form-control" 
                                   ng-model="edit_contactName"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">邮编：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="postcode" 
                                   class="form-control" 
                                   ng-model="edit_postcode"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">描述：</label>
                        <div class="col-xs-12 col-sm-9">
                            <textarea rows="5" 
                                      type="text" 
                                      name="description"   
                                      class="form-control" 
                                      ng-model="edit_description" 
                                      >
                            </textarea>   
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">机构状态：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="enabled" 
                                   class="form-control" 
                                   ng-model="edit_enabled"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">创建时间：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="createDate" 
                                   class="form-control" 
                                   ng-model="edit_createDate"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">创建人：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="createUserId" 
                                   class="form-control" 
                                   ng-model="edit_createUserId"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">最后修改时间：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="lastUpdatedDate" 
                                   class="form-control" 
                                   ng-model="edit_lastUpdatedDate"
                                   />    
                        </div>
                    </div>
                    <div class="form-group" >
                        <label class="col-xs-12 col-xs-12 col-sm-3 control-label text-right">最后修改人：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" 
                                   name="lastUpdatedUserId" 
                                   class="form-control" 
                                   ng-model="edit_lastUpdatedUserId"
                                   />    
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="confirmEdit($event)">修改</button>
                </div>
            </div>
        </div>
    </div>
<!-- 修改 END -->

<!-- 下级机构 BEGIN -->
    <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="packing">
        <div class="sub-modal modal-dialog " role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">下级机构列表</h4>
                </div>
                <div class="modal-body">
                    <table class="table table-bordered table-header">
                        <thead>
                            <tr>
                                <td class="w10 text-center">公司名称</td>
                                <td class="w10 text-center">上级机构信息</td>
                                <td class="w10 text-center">机构类型</td>
                                <td class="w10 text-center">性质</td>
                                <td class="w10 text-center">行业</td>
                                <td class="w10 text-center">省份</td>
                                <td class="w10 text-center">城市</td>
                                <td class="w5  text-center">状态</td>
                                <td class="w10 text-center">所辖用户</td>
                                <td class="w15 text-center">操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr  ng-repeat="val in subTabVal">
                                <td class="text-center">{{ val.institutionName }}</td>
                                <td class="text-center">{{ val.$$hashKey}}</td>
                                <td class="text-center">{{ val.institutionType }}</td>
                                <td class="text-center">{{ val.nature }}</td>
                                <td class="text-center">{{ val.industry }}</td>
                                <td class="text-center">{{ val.province }}</td>
                                <td class="text-center">{{ val.city }}</td>
                                <td class="text-center">{{ val.enabled }}</td>
                                <td class="text-center icon-td">
                                    <i class="icon-US"></i>
                                    <i class="icon-SRS"></i>
                                </td>
                                <td class="text-center icon-td">
                                    <i class="icon-details" 
                                       title="详情"     
                                       ng-click="subDetails($event, $index)"
                                       >
                                    </i>
                                    <i class="icon-edit"    
                                       title="编辑"     
                                       ng-click="subEdit($event, $index)"
                                       >
                                    </i>
                                    <i class="icon-packing" 
                                       title="下级机构" 
                                       ng-click="subPacking($event, $index)"
                                       >
                                    </i>
                                </td>
                            </tr>
                             <tr>
                                <td colspan="12" class="text-center" ng-hide="isNoDataSub">暂无数据</td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="12" ng-show="isNoData">
                                    <div class="pull-right">
                                        <nav>
                                            <!-- <tm-pagination conf="paginationConfSub"></tm-pagination> -->
                                        </nav>
                                    </div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>  
                <!-- <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" ng-disabled="userUpdate_form.$invalid" ng-click="confirmEdit($event)">修改</button>
                </div> -->
            </div>
        </div>
    </div>
<!-- 下级机构 END -->

</div>
